/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package DAO;

/**
 *
 * @author admin-pc
 */
public class DAOFactory {
    private static DAOFactory daoFac = null;
    
    private DAOFactory(){}
    public static DAOFactory getInstance(){
        if(daoFac==null){
            daoFac = new DAOFactory();
        }
        return daoFac;
    }
    public BookDAO getBookDAO(){
        return new BookDAOImpl();
    }
    public AuthorDAO getAuthorDAO(){
        return new AuthorDAOImpl();
        
    }
    
    
    
}
